<ul data-role="listview"  data-inset="true" >

    <?
    if ($this->message)
        {print '<li>'.$this->message.'</li>';}
    else {

        if (!empty($this->searchtag))
        {?>


                             <li>
                                 <div class="ui-bar ui-bar-b">
                               <? echo "Все новости с тегом ".$this->searchtag; ?>
                                </div>
                             </li>

       <? }
                foreach ($this->news as $news):?>
        <li>
            <div class="img" style="float: left;margin-right: 5px;">
                    <a href="/mobile/viewnews/id/<?php echo $news['id'] ?>">
                    <?php if (empty($article['img'])): ?>
                        <img src="http://placehold.it/100x100">
                    <?php else: ?>
                        <img style="height: 100px;width:100px;" src="<?php echo $this->image($news['img']) ?>" alt="<?php echo $news['title'] ?>">
                    <?php endif;  ?>
                    </a>
                </div>
            <div>
                <h3 style="line-height: 18px;"><a href="/mobile/viewnews/id/<?php echo $news['id'] ?>">
                            <?= $news['title'] ?>
                        </a></h3>
                 <p><?=$news['introduction']?></p>
             </div>
            <div style="clear:both;">
        </li>
        <?endforeach;
    }?>
</ul>